package stud.mpgame.flash.net.command;

import flash.utils.IDataOutput;

import stud.mpgame.network.Message;
import stud.mpgame.network.UserObject;

/**
 * ...
 * @author pavel[f.pavel91@gmail.com]
 */

class ReadyToGameCommand extends UserObject {
	
	private var time:Int;
	private var name:String;
    private var userID:Int;
	
	public function new(time:Int, name:String, userID:Int) {
		super();
		this.time = time;
		this.name = name;
		this.userID = userID;
	}
	
	override public function writeExternal(output:IDataOutput, message:Message):Void {
		output.writeInt(time);
		output.writeUTF(name);
		output.writeInt(userID);
    }
	
}